package priv.pfz.basedao.lab.dao.mapper;

import org.apache.ibatis.annotations.Param;
import priv.pfz.basedao.annotations.Table;
import priv.pfz.basedao.lab.dao.entity.ManualUserQuery;
import priv.pfz.basedao.lab.dao.entity.UserEntity;
import priv.pfz.basedao.lab.dao.entity.UserQuery;
import priv.pfz.basedao.mybatis.mapper.DefaultBaseMapper;

@Table(dbName = "world")
public interface UserMapper extends DefaultBaseMapper<UserEntity, UserQuery> {

    int manualInsert(UserEntity userEntity);

    int manualUpdateById(UserEntity userEntity);

    UserEntity manualSelectById(@Param("id") int id);

    UserEntity manualSelectByQuery(ManualUserQuery query);

}
